home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 1 / Cream of the Crop 1.iso / PROGRAM / BPAS9.ARJ / TEMP.PAS < prev    next >
Pascal/Delphi Source File  |  1991-09-02  |  810b  |  27 lines

  1.  {-----------------------------}
  2.  {         ASCII.PROC          }
  3.  {-----------------------------}
  4.  
  5.  PROCEDURE ASCII;
  6.                                            { See Tom Swan p. 39 ff }
  7.  
  8.  VAR
  9.    Ch  :  Char;
  10.    Num :  Integer;
  11.  
  12.  BEGIN
  13.    ClrScr;
  14.    WriteLn;
  15.    WriteLn;
  16.    Write    ( 'ASCII Character Set  ' );
  17.    WriteLn;
  18.    WriteLn;
  19.    FOR Num := 0 TO 255 DO
  20.      WriteLn ( 'ASCII Number = ',Num, ' Character = ',Char(Num) );
  21.    ReadLn;
  22.  END;
  23.                                              { As an exercise, convert this procedure to
  24.                                                one that prints out the ASCII code.  See
  25.                                                Tom Swan pp. 587-588 to declare a file,
  26.                                                then make the file LPT1. )
  27.